package com.platform.qujia.service;


import com.platform.qujia.pojo.BusinessAudit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (BusinessAudit)表服务接口
 *
 * @author makejava
 * @since 2023-12-19 16:26:30
 */
public interface BusinessAuditService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    BusinessAudit queryById(Long id);

    /**
     * 分页查询
     *
     * @param businessAudit 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<BusinessAudit> queryByPage(BusinessAudit businessAudit, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param businessAudit 实例对象
     * @return 实例对象
     */
    BusinessAudit insert(BusinessAudit businessAudit);

    /**
     * 修改数据
     *
     * @param businessAudit 实例对象
     * @return 实例对象
     */
    BusinessAudit update(BusinessAudit businessAudit);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    BusinessAudit queryLatestAudit(BusinessAudit businessAudit);

    List<BusinessAudit> query(BusinessAudit businessAudit);

    List<BusinessAudit> queryByMobilePhone(String mobilePhone);

    /**
     * 查询非渠道码加入的审核记录最新一条（公众号渠道认证过来的）
     * @param businessAudit
     * @return
     */
    BusinessAudit getGzhBusinessAudit(BusinessAudit businessAudit);
}
